package com.sarracenia.jiangyue.model.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author Sarracenia
 * @date 2020/2/11 17:37
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginVO {
    @NotEmpty(message = "用户名不能为空")
    @NotNull(message = "用户名不能为空")
    String username;
    @NotEmpty(message = "密码不能为空")
    @NotNull(message = "密码不能为空")
    String password;
}
